var mongoose = require('mongoose');
mongoose.Promise = global.Promise;
var schema = new mongoose.Schema({
    username: {
        type: String
    },
    password: {
        type: String
    },
    email: String,
    createDate: String
});

module.exports = function(collection) {
    return mongoose.model(collection, schema, collection);
};